﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CourseUtils;

namespace largestValue
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(findingLargestValue(2, 5, 1));
            Console.ReadKey();
        }

        static int findingLargestValue(int val1, int val2, int val3)
        {
            if (val1 > val2 && val1 > val3)
                return val1;
            else if (val2 > val1 && val2 > val3)
                return val2;
            else 
                return val3;
        }
    }
}
